:root {
    --bg-primary: #0F172A;
    --bg-secondary: #1E293B;
    --text-primary: #E2E8F0;
    --text-secondary: #94A3B8;
    --accent-color: #7C3AED;
    --card-bg: rgba(30, 41, 59, 0.8);
}

body.dark-mode {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.dark-mode .card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* 粒子动画效果 */
.canvas-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
    transition: opacity 0.5s ease;
}

.dark-mode .canvas-particles {
    opacity: 1;
}

/* 侧边栏深色模式 */
.dark-mode .sidebar {
    background: rgba(15, 23, 42, 0.95);
    border-right: 1px solid var(--border-color);
}

.dark-mode .sidebar-item {
    color: var(--text-secondary);
}

.dark-mode .sidebar-item.active,
.dark-mode .sidebar-item:hover {
    color: var(--accent-color);
    background-color: rgba(124, 58, 237, 0.1);
}

.dark-mode .sidebar-text {
    color: var(--text-primary);
}

.dark-mode .sidebar .border-b,
.dark-mode .sidebar .border-t {
    border-color: var(--border-color);
}

.dark-mode #toggle-sidebar {
    color: var(--text-secondary);
}

.dark-mode #toggle-sidebar:hover {
    color: var(--accent-color);
}
